/*****************************************************************
**                                                              **
**  Copyright (C) 2005 Amlogic,Inc.                             **
**  All rights reserved                                         **
**        Filename : aw_pic_app.c /Project:AVOS                **
**        Revision : 1.0                                        **
**                                                              **
*****************************************************************/
#ifndef __AW_PIC_APP_H_
#define __AW_PIC_APP_H_

#include "includes.h"
#include "aw_windows.h"
#include "app.h"
#include "aw_playlist2.h"
#include "user.h"
#include "pic_define.h"

//int PreviewPicPlayer(char *filename);

char *PicGetCurrentPlayingName(INT8U flag);

void PicReturnLastIndex() ;

void AWPICKeyDo(INT32S key) ;

void AWPICMsgProcess(AWMSG *pMsg) ;
extern  void SetPicRunStatus(INT8U flag);
extern void clear_current_screen();
extern INT8U Music_Pic_mix_flag ;
extern INT32U Pic_Decode_Percent ;
extern int RunPICPlayer(Playlist_t *playlist,unsigned char *logodata, unsigned logosize, unsigned flag);
extern int check_media_file_exist(char* path_name ,unsigned media_type,int search_way);
void set_title_indicator_enable(unsigned flag);
extern void AWClearRectTxt(COORD x, COORD y, COORD width, COORD height);


typedef struct
{
	pic_disp_info_t picinfo;
	char SixPicFileName[256];
}pic_disp_detail_info;
typedef struct
{
	unsigned long time;
	unsigned long time_nsec;
}pic_time;
#define  NO_PAGE               -1
#define NORMAL_PAGE        0
#define FIRST_PAGE           1
#define LAST_PAGE            2
#define ASSIGNED_PAGE        3
typedef struct{
    INT32S request_type;     /*request page type*/
    INT32S request_index;    /*the start file index*/
    INT32S request_focus;    /*the cursor's position */
}pic_page_request_info_t;
typedef struct {
	char *Emon;
	char *Hmon;
}timecheck;

typedef struct  {
	char year[4];
	char A;
	char month[2];
	char B;
	char day[2];
	char C;
	char hour[2];
	char D;
	char min[2];
	char E;
	char sec[2];
}StandardTime;
typedef struct {
	char year[4];
	char A;
	char month[3];
	char B;
	char day[2];
	char C;
	char hour[2];
	char D;
	char min[2];
	char E;
	char sec[2];
}FirstTime;
typedef struct {
	char year[4];
	char A;
	char month[2];
	char B;
	char day[2];
	char C;
	char hour[2];
	char D;
	char min[2];
	char E;
	char sec[2];
}TimeInfo;



#endif //__AW_PIC_APP_H_
